﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerDetails.aspx.cs" Inherits="Shop.Web.CustomerDetails" %>
<asp:Content ID="contentMain" runat="server" ContentPlaceHolderID="mainContent" >
        <table>
        <asp:PlaceHolder runat="server" id="phRegister">
        <tr>
            <td>E-mail</td>
            <td><common:TextBox runat="server" id="tbEmail" MaxLength="50"></common:TextBox></td>
            <td></td>
        </tr>
        <asp:PlaceHolder runat="server" id="phPasswrd">
        <tr>
            <td>Пароль</td>
            <td><asp:TextBox runat="server" id="tbPasswrd" TextMode="Password" Width="50" MaxLength="50"></asp:TextBox></td>
            <td></td>
        </tr>
        <tr>
            <td>Подтвердите пароль</td>
            <td><asp:TextBox runat="server" id="tbPasswrdDouble" TextMode="Password" Width="50" MaxLength="50"></asp:TextBox></td>
            <td></td>
        </tr>
        </asp:PlaceHolder>
        <tr>
            <td>Имя</td>
            <td><common:TextBox runat="server" id="tbFirstName" MaxLength="150"></common:TextBox></td>
            <td></td>
        </tr>
        <tr>
            <td>Фамилия</td>
            <td><asp:TextBox runat="server" id="tbLastName" MaxLength="150"></asp:TextBox></td>
            <td></td>
        </tr>
        <tr>
            <td>Пол</td>
            <td> <asp:RadioButtonList runat="server" id="rblSex"></asp:RadioButtonList></td>
            <td></td>
        </tr>
        <tr>
            <td>Контактный телефон</td>
            <td><common:TextBox runat="server" id="tbPhone" MaxLength="20"></common:TextBox></td>
            <td></td>
        </tr>
        <tr>
            <td>День рождения</td>
            <td><common:TextBox runat="server" id="tbBirthday" ></common:TextBox></td>
            <td></td>
        </tr>
        </asp:PlaceHolder>
        <asp:PlaceHolder runat="server" id="phAdmin">
        <tr>
            <td>Скидка</td>
            <td><common:TextBox runat="server" id="tbDiscount" ></common:TextBox></td>
            <td></td>
        </tr>
        <tr>
            <td>Заметки</td>
            <td><common:TextBox runat="server" id="tbNote" TextMode="Multiline" Height="200"></common:TextBox></td>
            <td></td>
        </tr>
        <tr>
            <td>Статус</td>
            <td><common:DropDownList runat="server" id="ddlRole"></common:DropDownList></td>
            <td></td>
        </tr>
        </asp:PlaceHolder>
        </table>  
        <asp:Button runat="server" id="btnAddUser" Text="Добавить" OnClick="btnAddUser_Click"/><br />
        Список пользователей:<br />
        <asp:GridView runat="server" id="gridCustomers" AllowPaging="true" AllowSorting="true" PageSize="10" AutoGenerateColumns="false">
            <Columns> 
                <asp:TemplateField>
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "Email")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
</asp:Content>
